﻿using App.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YTCMS.Domain.Entities;
using YTCMS.Services.Services;

namespace App.Controllers
{
    public class TestController : BaseController
    {
        public readonly ItestService _test;
        
        public TestController(ItestService test)
        {
            this._test = test;
        }
        //
        // GET: /Test/

        
        public ActionResult Index()
        {
            //获取缓存数据
            var model = RedisHelper<test>.Current.Get("key");
            //var model = _test.GetMany(s => true);
            //logger.Error("测试");
            return Content(model.First().Name);
        }
	}
}